        // 查询已经关联过的ID
        List<Integer> allByReOrder = dangerWaybillReOrderDao.findAllByReOrder();
        StringBuffer sql = new StringBuffer("sql省略");
        StringBuffer countSql = new StringBuffer("SELECT COUNT(*) FROM danger_order o  ");
        StringBuffer paramSql = new StringBuffer(" where 1=1 ");
        if(allByReOrder!=null && !allByReOrder.isEmpty()){
            paramSql.append(" AND o.id not in (:idList) ");
            maps.put("idList", allByReOrder);
            System.out.println(allByReOrder);
        }